navHover = function() {
	var navul = document.getElementById("navmenu")
	if(navul)
	{
	var lis = document.getElementById("navmenu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
			SetDisplay("divDDL",'none');
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
			SetDisplay("divDDL",'');
		}
	}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

function EnableMenuItems(){
    var isAnyMaster=false;
    var isAnyRawWater = false;
    try{
	for(var i=0; i<userPages.length; i++){
	    if(userPages[i].indexOf('Master')>0) isAnyMaster = true;
	    if(userPages[i].indexOf('RawWater')==0) isAnyRawWater = true;
	    SetDisplay(userPages[i],'');
	}
	if(isAnyMaster) SetDisplay('MasterMenuItem','');
	if(isAnyRawWater) SetDisplay('RawWaterMenuItem','');
	}catch(e){}
}
function SetDisplay(objName,display){
    var obj = document.getElementById(objName);
    //alert(obj.length);
    if(obj) obj.style.display=display;
    var ddl = document.getElementsByTagName('select');
    for(var i = 0; i < ddl.length; i++){
        //ddl[i].style.display=display;
        ddl[i].style.visibility = display=='none'?'hidden':'visible';
    }

}